package cn.edu.neu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.neu.mapper.MevaluteMapper;
import cn.edu.neu.model.Mevalute;

@Service
@Transactional
public class MevaluteServiceImpl implements MevaluteService {

	@Resource
	private MevaluteMapper mapper;

	@Override
	public List<Mevalute> getEvaluteByMemovieId(String movieId) {
		// TODO Auto-generated method stub
		List<Mevalute> mevalutes = mapper.getEvaluteByMemovieId(movieId);
		return mevalutes;
	}

	@Override
	public int addMevalute(String memovieId, String mename, String metime, String mebody, String meimg) {
		int add = mapper.addMevalute(memovieId, mename, metime, mebody, meimg);
		return add;
	}

}
